package com.mc.adapter.wechat.mpAPI.menu;

/**
 * 发送地理位置
 *
 * @author qsyang
 * @version 1.0
 */
public class LocationSelectButton extends SingleButton {

	/**
	 * 类型必须.菜单KEY值，用于消息接口推送，不超过128字节
	 */
	private String key;

	public LocationSelectButton() {
	}

	public LocationSelectButton(String key) {
		this.key = key;
	}

	public LocationSelectButton(String name, String key) {
		this.setName(name);
		this.key = key;
	}

	public String getType() {
		return ButtonType.Location_Select.toString();
	}

	/**
	 * 获取 菜单KEY值
	 *
	 * <p>
	 * 类型必须.菜单KEY值，用于消息接口推送，不超过128字节
	 * </p>
	 *
	 * @return 菜单KEY值
	 */
	public String getKey() {
		return this.key;
	}

	/**
	 * 设置 菜单KEY值
	 *
	 * <p>
	 * 类型必须.菜单KEY值，用于消息接口推送，不超过128字节
	 * </p>
	 *
	 * @param key
	 *            菜单KEY值
	 */
	public void setKey(String key) {
		this.key = key;
	}
}
